import re;
string='https://image1.ljcdn.com/510100-inspection/03bd0398-86e2-4e68-aa5c-baabeb4dbb97.jpg.1420x800.jpg';

result=re.findall(r'.\w{3,4}$',string);
print(result);

